import request from '@/utils/request'

// 查询列表
export function listAccounting(query) {
  return request({
    url: '/accounting/list',
    method: 'post',
    data: query
  })
}

// 查询协调人组列表详细
export function getAccounting(rowkey) {
  return request({
    url: '/accounting/edit/' + rowkey,
    method: 'get'
  })
}

// 修改协调人组列表
export function updateAccounting(rowkey) {
  return request({
    url: '/accounting/update',
    method: 'post',
    data: rowkey
  })
}


// 新增协调人组列表
export function addAccounting(data) {
  return request({
    url: '/accounting/insert',
    method: 'post',
    data: data
  })
}


// 删除协调人组列表
export function deleAccounting(ids) {
  return request({
    url: '/accounting/delete/' + ids,
    method: 'post'
  })
}

// 导出协调人组列表
export function exportAccounting(query) {
  return request({
    url: '/accounting/export',
    method: 'post',
    data: query
  })
}
